import isFunction from "./isFunction";

export default function isFunctionComponent(vDom) {
  const type = vDom.type;
  // 判断是不是函数式组件
  return type && isFunction(vDom) && !(type.prototype && type.prototype.render)
}
